package com.loie.xcx.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.loie.xcx.model.bo.IwInstance;
import com.loie.xcx.model.bo.IwTask;
import com.loie.xcx.model.dto.IwInstanceDTO;
import com.loie.xcx.model.dto.IwTaskDTO;
import com.loie.xcx.model.dto.IwinstanceQueryDTO;
import com.loie.xcx.model.dto.Moduletotal;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2023-03-01
 */
public interface IwInstanceMapper extends BaseMapper<IwInstance> {
    Integer update_flowdata(IwInstance iwInstance);
    Integer update_onlyflowdata(IwInstance iwInstance);
    List<IwInstanceDTO> getflowlist(@Param("moudlelist") List<String> moudlelist,@Param("iwinstanceQueryDTO")IwinstanceQueryDTO iwinstanceQueryDTO);
    List<IwInstanceDTO> getflowcompletedlist(@Param("moudlelist") List<String> moudlelist,@Param("iwinstanceQueryDTO")IwinstanceQueryDTO iwinstanceQueryDTO);
    Integer getflowListTotal(@Param("moudlelist") List<String> moudlelist,@Param("iwinstanceQueryDTO") IwinstanceQueryDTO iwinstanceQueryDTO);
    Integer getflowcompletedTotal(@Param("moudlelist") List<String> moudlelist,@Param("iwinstanceQueryDTO") IwinstanceQueryDTO iwinstanceQueryDTO);

    List<Moduletotal> getflowModuleListTotal(@Param("moudlelist") List<String> moudlelist,
                                             @Param("iwinstanceQueryDTO") IwinstanceQueryDTO iwinstanceQueryDTO);
    List<IwTaskDTO> getflowTaskList(IwinstanceQueryDTO iwinstanceQueryDTO);


}
